const StyleHome = resolve => require(['../../style-containers/home'], resolve);
const RealHome = resolve => require(['../../real-containers/home'], resolve);
// const StyleHome = resolve => require(['../../style-containers/home'], resolve);
const FoodGoodsClassify = resolve => require(['../../real-containers/FoodGoodsClassify'], resolve);
const EditHome = resolve => require(['../../edit-containers/EditHome'], resolve);
const Coupons = resolve => require(['../../real-containers/Coupons'], resolve);  /*首页优惠券*/
const myCoupons = resolve => require(['../../real-containers/myCoupons'], resolve);  /*个人中心我的优惠券*/
const MyPoints = resolve => require(['../../real-containers/MyPoints'], resolve);    /*个人中心我的积分*/
const myGiftCard = resolve => require(['../../real-containers/myGiftCard'], resolve);   /*个人中心我的礼品卡*/
const buyGiftCard = resolve => require(['../../real-containers/buyGiftCard'], resolve);  /*购买礼品卡*/
const ActivateGiftCard = resolve => require(['../../real-containers/ActivateGiftCard'], resolve); /*激活礼品卡*/
const TouchBalance = resolve => require(['../../real-containers/TouchBalance'], resolve); /*礼品卡余额明细*/
const GiftCardChargeOff = resolve => require(['../../real-containers/GiftCardChargeOff'], resolve); /*礼品卡核销明细*/
const BuyGiftCardRecord = resolve => require(['../../real-containers/BuyGiftCardRecord'], resolve); /*礼品卡购买记录*/
const SetKeyWallet = resolve => require(['../../real-containers/SetKeyWallet'], resolve); /*设置钱包密码*/
const MyWallet = resolve => require(['../../real-containers/MyWallet'], resolve); /*我的钱包*/
const RechargeDetail = resolve => require(['../../real-containers/RechargeDetail'], resolve); /*充值明细*/
const NewActivities = resolve => require(['../../real-containers/NewActivities'], resolve); /*新人活动*/
const giftCardInstrut = resolve => require(['../../real-containers/giftCardInstrut'], resolve); /*礼品卡使用说明*/
const NewOtherPage = resolve => require(['../../real-containers/NewOtherPage'], resolve); /*其他第三方页面*/
const AdPop = resolve => require(['../../real-containers/AdPop'], resolve);/*广告图弹窗跳转页*/
const Getrouter = resolve => require(['../../real-containers/Getrouter'], resolve);/*获取跳转路径组件页面*/
const IntegralBuy = resolve => require(['../../real-containers/IntegralBuy'], resolve);/*积分商城*/
const integralBuyRecord = resolve => require(['../../real-containers/integralBuyRecord'], resolve);/*积分购买记录*/
const integralProDetail = resolve => require(['../../real-containers/detail/integralProDetail.vue'], resolve);/*积分购买商品详情*/
const ConfirmOrderIntegral = resolve => require(['../../real-containers/ConfirmOrder/ConfirmOrderIntegral.vue'], resolve);/*积分购买商品订单详情*/
const GiftConfirmOrder = resolve => require(['../../real-containers/GiftConfirmOrder'], resolve);/*礼品卡确认订单*/
const GiftBuySuccess = resolve => require(['../../real-containers/GiftBuySuccess'], resolve);/*礼品卡订单支付成功*/
const GiftOrderDetails = resolve => require(['../../real-containers/GiftOrderDetails'], resolve);/*礼品卡订单详情*/
const giftCardGuidance = resolve => require(['../../real-containers/giftCardGuidance'], resolve);/*礼品卡分享激活引导页面*/
const MiddleWare = () => import("../../real-containers/MiddleWare");
let homeRouterComponents = window.environment === "production" ? {
	real: RealHome
} : {
	style: StyleHome,
	real: RealHome,
	edit: EditHome
};
export default [
	{
		path: "home",
		name: "home",
		title:"首页",
		components: homeRouterComponents
	},
	{
		path: "FoodGoodsClassify",
		name: "FoodGoodsClassify",
		title:"餐点",
		components: {
			// style: StyleHome,
			real: FoodGoodsClassify
		}
	},
	{
		path: "Coupons",
		name: "Coupons",
		title:"首页领取优惠券",
		state: 1,
		components: {
			// style: StyleHome,
			real: Coupons
		}
	},
	{
		path: "myCoupons",
		name: "myCoupons",
		title:"我的优惠券",
		components: {
			// style: StyleHome,
			real: myCoupons
		}
	},
	{
		path: "MyPoints",
		name: "MyPoints",
		title:"我的积分",
		components: {
			// style: StyleHome,
			real: MyPoints
		}
	},
	{
		path: "myGiftCard",
		name: "myGiftCard",
		title:"我的礼品卡",
		components: {
			// style: StyleHome,
			real: myGiftCard
		}
	},
	{
		path: "buyGiftCard",
		name: "buyGiftCard",
		title:"购买礼品卡",
		state: 1,
		components: {
			// style: StyleHome,
			real: buyGiftCard
		}
	},
	{
		path: "ActivateGiftCard",
		name: "ActivateGiftCard",
		title:"激活礼品卡",
		components: {
			// style: StyleHome,
			real: ActivateGiftCard
		}
	},
	{
		path: "TouchBalance",
		name: "TouchBalance",
		title:"余额明细",
		components: {
			// style: StyleHome,
			real: TouchBalance
		}
	},
	{
		path: "GiftCardChargeOff",
		name: "GiftCardChargeOff",
		title:"核销明细",
		components: {
			// style: StyleHome,
			real: GiftCardChargeOff
		}
	},
	{
		path: "BuyGiftCardRecord",
		name: "BuyGiftCardRecord",
		title:"购买卡记录",
		components: {
			// style: StyleHome,
			real: BuyGiftCardRecord
		}
	},
	{
		path: "SetKeyWallet",
		name: "SetKeyWallet",
		title:"钱包密码",
		components: {
			// style: StyleHome,
			real: SetKeyWallet
		}
	},
	{
		path: "MyWallet",
		name: "MyWallet",
		title:"我的钱包",
		components: {
			// style: StyleHome,
			real: MyWallet
		}
	},
	{
		path: "RechargeDetail",
		name: "RechargeDetail",
		title:"充值明细",
		components: {
			// style: StyleHome,
			real: RechargeDetail
		}
	},
	{
		path: "NewActivities",
		name: "NewActivities",
		title:"旧新人活动",
		components: {
			// style: StyleHome,
			real: NewActivities
		}
	},
	{
		path: "giftCardInstrut",
		name: "giftCardInstrut",
		title:"礼品卡使用说明",
		components: {
			// style: StyleHome,
			real: giftCardInstrut
		}
	},
	{
		path: "NewOtherPage",
		name: "NewOtherPage",
		title:"其他第三方页面",
		components: {
			// style: StyleHome,
			real: NewOtherPage
		}
	},
	{
		path: "AdPop",
		name: "AdPop",
		title:"广告图弹窗页",
		components: {
			// style: StyleHome,
			real: AdPop
		}
	},
	{
		path: "MiddleWare",
		name: "MiddleWare",
		components: {
			real: MiddleWare
		}
	},
	{
		path: "Getrouter",
		name: "Getrouter",
		/*state: 1,
		title:"路由组件",*/
		components: {
			real: Getrouter
		}
	},
	{
		path: "IntegralBuy",
		name: "IntegralBuy",
		title:"积分商城",
		state: 1,
		components: {
			// style: StyleHome,
			real: IntegralBuy
		}
	},
	{
		path: "integralBuyRecord",
		name: "integralBuyRecord",
		title:"积分兑换记录",
		components: {
			real: integralBuyRecord
		}
	},
	{
		path: "integralProDetail",
		name: "integralProDetail",
		title:"积分商品详情",
		components: {
			real: integralProDetail
		}
	},
	{
		path: "ConfirmOrderIntegral",
		name: "ConfirmOrderIntegral",
		title:"积分订单详情",
		components: {
			real: ConfirmOrderIntegral
		}
	},
	{
		path: "GiftConfirmOrder",
		name: "GiftConfirmOrder",
		title:"礼品卡确认订单",
		components: {
			real: GiftConfirmOrder
		}
	},
	{
		path: "GiftBuySuccess",
		name: "GiftBuySuccess",
		title:"礼品卡订单支付成功",
		components: {
			real: GiftBuySuccess
		}
	},
	{
		path: "GiftOrderDetails",
		name: "GiftOrderDetails",
		title:"礼品卡订单详情",
		components: {
			real: GiftOrderDetails
		}
	},
	{
		path: "giftCardGuidance",
		name: "giftCardGuidance",
		title:"礼品卡激活引导",
		components: {
			real: giftCardGuidance
		}
	},
	
	
]
